﻿@model IEnumerable<Entity.TipoInventario>

@{
    ViewBag.Title = "Lista Tipo de Inventario";
    Layout = "~/Views/Shared/_Menubar.cshtml";
}


<div class="container" style="position:relative; top:20px; right:-160px; width:1000px">
    <div class="well well-sm">
        <div class="row">
            <div class="col-md-6">
                <h2>Tipo de Inventario</h2>

                <div class="col-xs-2 text-right">
                    <a class="btn btn-primary" href="~/TipoInventario/Create">Nuevo registro</a>
                </div>
            </div>
        </div>
    </div>
    <table id="grid" class="table table-bordered">
        <thead>
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.NombresTipoInventario)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.activo)
            </th>
            <th></th>
        </tr>
            </thead>
        <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.NombresTipoInventario)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.activo)
                </td>
     
                <td class="text-left">
                    <a class="btn btn-danger" href="~/TipoInventario/Delete/@item.IdTipoInventario" title="Eliminar" >
                        <i class="glyphicon glyphicon-floppy-remove"></i>
                    </a>
                    <a class="btn btn-success" href="~/TipoInventario/Details/@item.IdTipoInventario" title="Visualizar">
                        <i class="glyphicon glyphicon-eye-open"></i>
                    </a>
                    <a class="btn btn-default" href="~/TipoInventario/Edit/@item.IdTipoInventario" title="Editar">
                        <i class="glyphicon glyphicon-pencil"></i>
                    </a>
                </td>
            </tr>
        }
            </tbody>
    </table>
    
    </div>